class Time {
    static get date() {
        return new Date();
    }
    static get year() {
        return this.date.getFullYear
    }
    static get month() {
        return this.date.getMonth() + 1;
    }
    static get day() {
        return this.date.getDate();
    }
    static get hour() {
        return this.date.getHours();
    }
    static get minute() {
        return this.date.getMinutes();
    }
    static get second() {
        return this.date.getSeconds();
    }
    static get fullDay() {
        const iDay = this.day;
        let day: string = this.day + '';
        if (iDay < 10) {
            day = '0' + day;
        }
        return day;
    }
    static get fullMonth() {
        const iMon = this.month;
        let mon: string = this.month + '';
        if (iMon < 10) {
            mon = '0' + mon;
        }
        return mon;
    }
    static get monthDays() {
        const year = new Date().getFullYear();
        const date = new Date(year, this.month, 0);
        return date.getDate();
    }
    static get dateMap() {
        const date = new Date();
        const dateMap: DateMap = {
            year: date.getFullYear(),
            month: date.getMonth() + 1,
            day: date.getDate(),
            hour: date.getHours(),
            minute: date.getMinutes(),
            second: date.getSeconds(),
        };
        return dateMap;
    }
}